<?=$this->inktype->form_open('mdl_comments', 'user_comment', array('id'=>'comment_form'));?>

	<input type="hidden" name="post_id" value="<?=$post->post_id;?>">
	
	<?if ($this->inktype->is_logged_in()) {?>
	
	<input type="hidden" name="user_id" value="<?=$this->session->userdata('user_id');?>">
	
	<?} else {?>
	
	<label>Your Name: </label>
	<input type="text" name="display_name" value="<?if(isset($this->validation->display_name)){echo $this->validation->display_name;}?>" class="">
	
	<?}?>

	<label>Your Comment: </label>
	<textarea id="comment" name="comment" class="comment"><?if(isset($this->validation->comment)){echo $this->validation->comment;}?></textarea>

	<input type="submit" name="btn_submit" value="Submit Comment" id="comment_button" class="comment_button">

</form>